<!DOCTYPE html>
<html>

<head>
    <title>修改审批流程</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../../static/orderscreate/css/bootstrap.min.css" rel="stylesheet">
    <link href="../../static/orderscreate/css/fileinput.min.css" rel="stylesheet">
    <link href="../../static/orderscreate/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link href="../../static/orderscreate/form_builder/animate.min.css" rel="stylesheet">
    <link href="../../static/orderscreate/form_builder/summernote.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="../../static/system_setup/flow_cerate/css/jquery-ui.min.css">
    <link rel="stylesheet" type="text/css" href="../../static/system_setup/flow_cerate/css/style.css">

    <link href="../../static/orderscreate/form_builder/style.min862f.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../../static/orderscreate/css/index.css">
    <script src="../../static/system_setup/js/jquery-1.10.2.min.js"></script>
    <script src="../../static/orderscreate/javascript/bootstrap.min.js"></script>
    <script src="../../static/orderscreate/javascript/fileinput.min.js"></script>
    <script src="../../static/orderscreate/javascript/bootstrap-datetimepicker.min.js"></script>
    <script src="../../static/orderscreate/javascript/distpicker.data.min.js"></script>
    <script src="../../static/orderscreate/javascript/distpicker.min.js"></script>
    <script src="../../static/orderscreate/javascript/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="../../static/orderscreate/javascript/zh.js"></script>
    <script src="../../static/orderscreate/javascript/jquery-ui.min.js"></script>
    <script src="../../static/orderscreate/form_builder/beautifyhtml.js"></script>
    <script src="../../static/orderscreate/javascript/index_product.js"></script>
    <script src="../../static/system_setup/js/H-ui.admin.page.js"></script>
    <script src="../../static/system_setup/layer/2.4/layer.js"></script>
    <style>
        .form-flow {
            display: inline-block;
            width: 100px;
            vertical-align: top;
            text-align: center;
            font-size: 14px;
            cursor: pointer;
        }

        .form-flow-add-color {
            border-bottom: #00a0e9 solid 1px;
            color: #00a0e9;
        }

        .li-class {
            list-style: none;
            margin-top: 2%;
            color: #0b0b0b;
            cursor: pointer;
        }

        .add_background {
            background: #A9A9A9;
        }

        tr {
            height: 35px;
        }

        th {
            text-align: center;
        }

        table {
            table-layout: fixed;
        }

        td:first-child, th:first-child {
            position: sticky;
            left: 0; /* 首行永远固定在左侧 */
            z-index: 1;
        }

        thead tr th {
            position: sticky;
            top: 0; /* 列首永远固定在头部  */
            background-color: #E8E8E8;
        }

        th:first-child {
            z-index: 2;
        }

        .search1 {
            width: 95%;
            display: flex;
            float: right;
            margin: 5.5px 0;
            margin-right: 1%;
            /*border: 1px solid red;*/
        }

        .search1 input {
            vertical-align: middle;
            float: left;
        / / 左浮动 flex: 4;
            height: 29px;
            width: 77%;
            outline: none;
            border: 1px solid #0070c1;
            box-sizing: border-box;
        / / 盒子模型，怪异IE盒子模型，width = content + border * 2 + padding * 2 padding-left: 10 px;
            border-bottom-left-radius: 5px;
            border-top-left-radius: 5px;
        }

        .search1 button {
            float: right;
            flex: 1;
            height: 29px;
            width: 23%;
            line-height: 29px;
            background-color: #0070c1;
            color: white;
            border-style: none;
            outline: none;
            border-bottom-right-radius: 5px;
            border-top-right-radius: 5px;
        }

        .search1 button i {
            font-style: normal;
        }

        .search1 button:hover {
            font-size: 16px;
        }

        .add_background {
            background: #A9A9A9;
        }

        * {
            margin: 0;
            padding: 0;
        }

        ul, li {
            list-style: none;
        }

        :focus {
            outline: none;
        }

        input[type=text] {
            border: 1px solid #ccc;
        }

        input[type=text]:hover, input[type=text]:focus {
            border-color: #57bc80;
            box-shadow: none;
        }

        .file {
            position: relative;
            display: inline-block;
            background: #D0EEFF;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: #1E88C7;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }

        .file input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
        }

        .file:hover {
            background: #AADFFD;
            border-color: #78C3F3;
            color: #004974;
            text-decoration: none;
        }

        body {
            padding: 50px;
            font-size: 12px;
        }

        .my-select-box {
            position: relative;
        }

        .my-select-box .my-select-input {
            height: 24px;
            line-height: 24px;
            padding: 0 5px;
            background: url() right center no-repeat;
            padding-right: 20px !important;
            width: 100%;
            box-sizing: border-box;
        }

        .my-select-box .my-select-list {
            position: absolute;
            left: 0;
            z-index: 101;
            border: 1px solid #ccc;
            border-top: none;
            max-height: 120px;
            overflow-y: auto;
            display: none;
            background: #fff;
            width: 100%;
            box-sizing: border-box;
        }

        .my-select-box .my-select-list li {
            height: 22px;
            line-height: 22px;
            padding: 0 3px;
            cursor: pointer;
            margin-bottom: 1px
        }

        .my-select-box .my-select-list li.choosed {
            background: #ccc;
            color: #fff;
        }

        .my-select-box .my-select-list li:hover {
            background: #ccc;
            color: #fff;
        }

        .radio-inline_1 {
            margin-top: 7px;
            padding-right: 20px;
        }
        #add_order {
            float: right;
            height: 30px;
            margin-top: 5px;
            margin-right: 10px;
            background: #00a0e9;
            color: white;
            line-height: 14px;
            width: 80px;
            border: #00a0e9 solid 1px;
            border-radius: 3px;
            padding: 8px;
        }
    </style>
</head>

<body style="background-color:#f7f5f6;padding: 0;">
{% for obj in objs %}
    {% if obj.name == process_name %}
        <div id="flow_design_apply" class="container-fluid" style="padding:0; margin:0">
            <div class="row-fluid clearfix">
                <div class="col-md-12 column">
                    <div style="width:80%; margin:0 auto; margin-top:5%;">
                        <div class="conference-cont" style="height: 640px;">
                            <div>
                                <div class="row">
                                    <div class="container device" style="width: 100%;padding: 0;margin: 0;">
                                        <div id="deviceRight" style="height: 100%;width: 100%;">
                                            <div id="approver_but" style="float: right;width: 110px;height: 40px;text-align: center;">
                                                <a href="javascript:;" style="text-decoration: none;"
                                                   onclick="admin_add('修改流程','product_update_view?id='+{{ obj.id }},'1200','800')"><span class="l" id="add_order">修改流程</span></a>
                                            </div>
                                            <div id="main">
                                                {% autoescape off %}{{ obj.process_html }}{% endautoescape %}
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    {% endif %}
{% endfor %}

<script type="text/javascript" src="../../static/system_setup/flow_cerate/js/jquery.jsPlumb.min.js"></script>
<script type="text/javascript" src="../../static/system_setup/flow_cerate/js/index_product.js"></script>
<script>
    function admin_add(title,url,w,h){
        layer_show(title,url,w,h);
    }
</script>
</body>

</html>
